package test.com.emip.util;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

public class FileAccess {

	public void operate(String line) {
		System.out.println(line);
	}
	
	public void access(String datapath) {
		BufferedReader br = null;
		try {
			br = new BufferedReader(new FileReader(new File(datapath)));
			String temp = br.readLine();
			while (temp != null) {
				operate(temp.trim());
				temp = br.readLine();
			}
			br.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
